package com.res;
import com.entity.ArticalChannel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.util.Date;
import java.util.List;

@Data
public class ArticalRes {


        private Long id;

        /**
         * 标题
         */
        @ApiModelProperty("标题")
        private String title;
        /**
         * 描述
         */
        @ApiModelProperty("描述")
        private String descre;


        private String crName;
        @ApiModelProperty("图片集")
        private String imgs;
        @ApiModelProperty("预览图")
        private String preImg;
        @ApiModelProperty("创建时间")
        private Date crDate;

        @ApiModelProperty("资源链接")
        private String resourceLink;
        @ApiModelProperty("资源文件")
        private String resourceFile;
        @ApiModelProperty("是否自建")
        private String isSelf;
        private String userId;
        private String userName;
        @ApiModelProperty("频道id")
        private Long channelId;
        private String channelName;
        private String origin;
        @ApiModelProperty("其他网站的预览图")
        private String otherPre;
        @ApiModelProperty("其他网站的资源文件")
        private String otherResourceFile;
        public static final String YES = "yes";
        private static final String NO = "no";

        /**
         * 自建
         */
        public static final String SELF = "self";
        /**
         * 采集
         */
        public static final String COLLECT = "collect";
        /**
         * 频道集合 文章与频道1对多的关系
         */
        List<ArticalChannelRes> channelList;
        /**
         * 修改时间
         */
        private Date moDate ;
    }

